package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-07-15 9:55
 */
public class Test05 {
    public static void main(String[] args) {
        byte b1=1;
        byte b2=2;
        byte b3= (byte) (b1+b2);
        char c1='a';
        char c2= (char) (c1+1);
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(Long.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);
        System.out.println(Float.MAX_VALUE);
        //小数计算有误差,以后有专门的解决办法
        System.out.println(10/3);
        System.out.println(10/3.0);
        System.out.println(0.1+0.2);

        long num1= (long) (1+99999999999L+0.1);
        double num2= 1+99999999999L+0.1;
        float num3= 1+99999999999L+0.1f;
        System.out.println(num1);
        System.out.println(num2);
    }
}
